package com.ayu.shortlink.engine.common.constant;

/**
 * Redis常量
 */
public class RedisCacheConstant {

    /**
     * 优惠券模版存量的Key
     */
    public final static String COUPON_TEMPLATE_CAPACITY_KEY = "short-link:coupon_distribute_save:%s";


    /**
     * 用户获取优惠券次数存储在Redis的Key
     */
    public final static String USER_OBTAIN_COUPON_TIME_KEY = "short-link:user_obtain_coupon_time:user:%s-coupon:%s";

    /**
     * 查询优惠券模版的分布式锁
     */
    public final static String LOCK_FIND_COUPON_TEMPLATE = "short-link:find_coupon_template:%s";

    /**
     * 存储优惠券模版信息的 KEY
     */
    public final static String COUPON_TEMPLATE_KEY = "short-link:coupon_template:%s";

    /**
     * 存储优惠券模版是否存在的布隆过滤器KEY
     */
    public final static String COUPON_TEMPLATE_EXIST_KEY = "short-link:coupon_template_exist:%s";

    /**
     * 修改优惠券数量的读写锁
     */
    public final static String LOCK_COUPON_TEMPLATE_STOCK_CHANGE = "short-link:coupon_template_stock_change:%s";

    /**
     * 存储用户提示信息
     */
    public final static String COUPON_REMIND_INFORMATION = "short-link:coupon-remind-information:%s";

    /**
     * 存储消息提醒发送状态
     */
    public final static String COUPON_REMIND_MESSAGE_STATUS = "short-link:coupon-remind-message-status:%s";

}
